<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
 <%
 	String[][][] menu = {
		 {},
		 {
		//	担当者一覧のアドレスを訂正	2013.10.16	若林
		//	 {"担当者一覧", "/manager/managerMenu.jsp"}
			 {"担当者一覧", " /Books/manager/ListServlet"}
		 },
		 {
			{"担当者メニュー", "/Books/member/userMenu.jsp"},
			{"利用者検索", "/Books/member/userMemberSearch.jsp"},
			{"書籍検索", "/Books/book/userBookSearch.jsp"}
		 },
		 {
			{"利用者検索", "/Books/member/userMemberSearch.jsp"},
			{"書籍検索", "/Books/book/userBookSearch.jsp"}
		 },
		 {
			{"書籍検索", "/Books/book/userBookSearch.jsp"},
			{"アプリ紹介", "#"},
			{"施設紹介・地図", "#"}
		 }
 	};

 	String strStage = (String)getServletContext().getAttribute("stage");
 	int stage = (strStage == null || strStage.length() < 1) ? 2 : Integer.parseInt(strStage);
 	String m[][] = menu[stage];
 %>
<div id="menu">
	<% if (m.length > 0) { %>
	<ul>
		<li class="top"><a href="<%= m[0][1] %>"><%= m[0][0] %></a></li>
		<% for ( int i=1 ; i<m.length ; i++)  { %>
		<li><a href="<%= m[i][1] %>"><%= m[i][0] %></a></li>
		<% } %>
	</ul>
	<% }; %>
</div>